package battleship;

import java.awt.Color;

/**
 *
 * @author kamil
 */
public enum FieldType {
	NORMAL, // puste pole
	HIT, // trafiony
	MISSED, // pudlo
	INACTIVE,
	SET, //faza ustawiania statku
	SHIP; // ustawiony statek
	
	Color getColor() {
		switch (this) {
			case HIT: return Color.RED;
			case MISSED: return Color.BLUE;
			case INACTIVE: return Color.LIGHT_GRAY;
			case SET: return Color.DARK_GRAY;
			case SHIP: return Color.ORANGE;
			case NORMAL:
			default: return Color.GRAY;
		}
	}
}
